-- GENERATED SPELL FOR [Duggan Wildhammer] --


function spell0_10817(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10817', 653, 1)
end

function spell1_10817(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10817', 592, 1)
end

function Sorts_10817(pUnit, Event)
local choix_sorts_10817 = math.random(0, 1)
if choix_sorts_10817 == 0 then
pUnit:RegisterEvent('spell0_10817', 1, 1)
end
if choix_sorts_10817 == 1 then
pUnit:RegisterEvent('spell1_10817', 1, 1)
end
end

function mob10817_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10817', math.random(1500, 3000), 1)
end

function mob10817_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10817_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10817_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10817, 1, 'mob10817_Action')
RegisterUnitEvent(10817, 2, 'mob10817_Leave')
RegisterUnitEvent(10817, 3, 'mob10817_Kill')
RegisterUnitEvent(10817, 4, 'mob10817_Die')
